#include"LFMCorrection.h" 

#include<stdio.h>

LFMCorrection::LFMCorrection(){
	next = 0;
	artistCorrected = albumCorrected = titleCorrected = false;
}

LFMCorrection::~LFMCorrection(){
	if(next)
		delete next;
}

void LFMCorrection::print(){
	printf("Correction:\n");
	if(artistCorrected)
		printf("\tArtist: %s\n", artist.toUtf8().data());
	if(albumCorrected)
		printf("\tAlbum: %s\n", album.toUtf8().data());
	if(titleCorrected)
		printf("\tTitle: %s\n", title.toUtf8().data());
}

short int LFMCorrection::count()const{
	if(next)
		return next->count() + 1;
	return 1;
}